﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="ProductDetails.aspx.cs" Inherits="ProductDetails" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
    <style type="text/css">
        .style4
        {
            height: 21px;
        }
        .style12
        {
        }
        .style16
        {
            width: 80px;
        }
        .style17
        {
            height: 21px;
            width: 80px;
        }
        .style18
        {
            width: 360px;
        }
        .style19
        {
            width: 536px;
        }
        .style23
        {
            width: 70px;
            height: 21px;
        }
        .style25
        {
            width: 70px;
            text-align: left;
        }
        .style26
        {
            width: 70px;
        }
        .style27
        {
            height: 21px;
            width: 83px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
    <table width="80%">
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td class="style19" colspan="2">
                <asp:Label ID="loginuser" runat="server" Font-Bold="True" Font-Italic="True" 
                    ForeColor="Black"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style18">
                &nbsp;</td>
            <td class="style19" colspan="2">
                <asp:DataList ID="DataList1" runat="server" DataKeyField="Pro_ID" 
                    DataSourceID="SqlDataSource1" BorderColor="#CCCCCC" BorderStyle="Solid">
                    <ItemTemplate>
                        <br />
                        <table>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td align="right" colspan="3" class="align_left">
                                    Product ID:
                                    <asp:Label ID="Pro_IDLabel" runat="server" Text='<%# Eval("Pro_ID") %>' />
                                    <br />
                                    Product Code:
                                    <asp:Label ID="CodeLabel" runat="server" Text='<%# Eval("Code") %>' />
                                    <br />
                                    Product Name:
                                    <asp:Label ID="Pro_NameLabel" runat="server" Text='<%# Eval("Pro_Name") %>' />
                                </td>
                                <td class="style16">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td class="style12" colspan="3">
                                    <br />
                                    <asp:Image ID="Image1" runat="server" Height="204px" 
                                        ImageUrl='<%# Eval("Pro_Image","image_Fr\\{0}") %>' Width="278px" />
                                    &nbsp;
                                    <br />
                                </td>
                                <td class="style16">
                                    <br />
                                    Product Price:
                                    <asp:Label ID="Pro_PriceLabel" runat="server" Text='<%# Eval("Pro_Price") %>' />
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td colspan="2">
                                    Description:
                                    <br />
                                    <telerik:RadTextBox ID="RadTextBox1" Runat="server" ReadOnly="True" 
                                        Skin="Hay" Text='<%# Eval("Description") %>' TextMode="MultiLine" 
                                        Width="300px">
                                    </telerik:RadTextBox>
                                </td>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style4">
                                    </td>
                                <td align="right" class="style25">
                                    Point Value :</td>
                                <td align="right">
                                    <asp:Label ID="Point_ValueLabel" runat="server" 
                                        Text='<%# Eval("Point_Value") %>' />
                                </td>
                                <td align="right" class="style12" colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style4">
                                    &nbsp;</td>
                                <td align="right" class="style26">
                               
                                    <asp:Label ID="Label2" runat="server" Text="Business Value"></asp:Label>
                                </td>
                                <td align="right">
                                    <asp:Label ID="lbl_Bv" runat="server" Text='<%# Eval("Business_Value") %>'></asp:Label>
                                </td>
                                <td align="right" class="style12" colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style4">
                                    &nbsp;</td>
                                <td class="style23">
                                    <asp:Label ID="Label1" runat="server" Text="Quantity : "></asp:Label>
                                </td>
                                <td class="style27" colspan="2">
                                    <asp:TextBox ID="TextBox3" runat="server" Height="25px" Width="132px" 
                                        ForeColor="Black">1</asp:TextBox>
                                </td>
                                <td class="style17">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <br />
                    </ItemTemplate>
                </asp:DataList>
                </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" align="center">
            <div>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString1 %>" 
                    
                    SelectCommand="SELECT [Pro_ID], [Code], [Description], [Pro_Name], [Pro_Price], [Point_Value], [Pro_Type], [Pro_Image], [Cat_ID], [Business_Value] FROM [Tbl_Product] WHERE ([Pro_ID] = @Pro_ID)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="Pro_ID" QueryStringField="PID" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td align="center">
                &nbsp;</td>
            <td align="center">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                    Text="Add To Cart" />
                <asp:Button ID="Button2" runat="server" PostBackUrl="~/Product_View.aspx" 
                    Text="Back To Shopping" />
                <asp:Button ID="Button3" runat="server" PostBackUrl="~/Your_Cart.aspx" 
                    Text="GoTo Cart" />
            </td>
            <td colspan="2" align="center">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

